/** FilterFlanging.cpp */

#include "FilterFlanging.h"
#include <iostream>
#include <cmath>
namespace libtrckr {
string FilterFlanging::HowToTune(){
	return "Spin +1 +20;Spin -0 +0";
}

FilterFlanging::FilterFlanging():FilterConvolution(){}

FilterFlanging::FilterFlanging(const FilterFlanging& f):FilterConvolution(f){}

FilterFlanging::~FilterFlanging(){

}

void FilterFlanging::Tune(DynArray<int> conf ){
	int size=(conf[0]/1000.)*conf[2];
	std::cout << "size :" << size << std::endl;
	DynArray<int> tmp(size,0);
	tmp[0]=100;
	tmp[size-1]=pow(10.0, conf[1]/(100*20.))*100;
	FilterConvolution::Tune(tmp);
}

}
